package cn.mystylefree.proxydemo.proxy;

/**
 * @program my-project-model
 * @description:
 * @author: lee
 * @create: 2022/07/14 19:58
 */
public class HelloStaticProxy implements HelloInterface {
    private HelloInterface helloInterface = new Hello();

    @Override
    public void sayHello() {
        System.out.println("我是代理类，增强了被代理的方法，输出前");
        helloInterface.sayHello();
        System.out.println("我是代理类，增强了被代理的方法，输出后");
    }
}
